package com.example.demo.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface StatisticMapper {

    public int setCommentsNumByArticleId(Integer articleId);

    public int getHitsByArticleId(Integer articleId);

    public int setHitsByArticleId(Integer hits, Integer articleId);

    public int insertStatistic(Integer articleId, Integer hits, Integer commentsNum);

    public int deleteStatisticByArticleId(Integer articleId);
}
